package com.es.interpreter.context.js.param;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 函数执行输入
 *
 * @author Will
 */
@Getter
@Setter
@NoArgsConstructor(staticName = "newInstance")
@Accessors(chain = true)
public class FunctionInput extends AbstractJavaScriptBaseInput {
    /**
     * 函数名称
     */
    private String methodName;
    /**
     * 函数需要参数
     */
    private Object[] args;

    public FunctionInput setArgs(String... args) {
        this.args = args;
        return this;
    }
}
